/*
 * @Description: 举报管理接口模块
 * @version: 电子名片2.0
 * @Author: 尹鑫
 * @Date: 2020-12-02 09:31:16
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-11-17 14:43:23
 */
import request from '@/utils/request'

// =======================个人举报=======================

// 举报管理列表-2.0
export function reportList1(query) {
  return request({
    url: '/member/platform/member/report/1',
    method: 'get',
    params: query
  })
}
// 举报管理列表-2.3
export function reportList(params) {
  return request({
    url: "/member/platform/member/report/page",
    method: 'get',
    params
  })
}
// 举报管理-审核详情-2.3
export function reportDetails(reportId){
  return request({
    url:`/member/platform/member/report/detail/${reportId}`,
    method:'post',
    params: {}
  })
}
// 举报管理-审核-2.3
export function reportAudit(data){
  return request({
    url:'/member/platform/member/report/audit',
    method:'post',
    data
  })
}
// 举报管理详情
export function reportDetail(query) {
  return request({
    url: `/member/platform/member/report/${query.reportId}`,
    method: 'post'
  })
}

// 举报管理审核
export function reportCheck(params) {
  return request({
    url: '/member/platform/member/report/audit',
    method: 'post',
    data: params
  })
}

// 举报原因下拉列表
export function reportReasonList(type) {
  return request({
    url: `/sys/platform/common/report/sel?type=${type}`,
    method: 'get',
  })
}
// 组织动态举报详情
export function reportTypeDetail(dynamicId){
  return request({
    url:`/sys/company/dynamic/detail/${dynamicId}`,
    method:'get',
  })
}
// 产品服务举报详情
export function reportTypeDetail2(productId){
  return request({
    url:`/sys/company/product/detail/${productId}`,
    method:'get',
  })
}
// 个人动态举报详情
export function reportTypeDetail3(query){
  return request({
    url:`/circle/share/dynamic-detail?content=${query}`,
    method:'get',

  })
}
// ======================申述管理========================
// 申述列表
export function appealList(query){
  return request({
    url:'/member/platform/member/appeal/page',
    method:'get',
    params:query
  })
}
// 申述审核弹窗
export function appealAuditBox(id){
  return request({
    url:`/member/platform/member/appeal/detail/${id}`,
    method:'post',
    
  })
}
// 申诉审核
export function appealAudit(data){
  return request({
    url:'/member/platform/member/appeal/audit',
    method:'post',
    data
  })
}

// =======================群聊举报=======================

export function reportList2(query) {
  return request({
    url: '/member/platform/member/report/2',
    method: 'get',
    params: query
  })
}

// =======================动态举报=======================

export function reportList3(query) {
  return request({
    url: `/member/platform/member/report/${query.type}`,
    method: 'get',
    params: query
  })
}
